package com.palfund.butterknife;


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.palfund.butterknife.base.BaseFragment;

import butterknife.BindView;
import butterknife.OnClick;


/**
 * A simple {@link Fragment} subclass.
 */
public class BlankFragment extends BaseFragment {
    @BindView(R.id.tv)
    TextView mTv;


    public BlankFragment() {
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        mTv.setText("Bind Fragment");
    }


    @OnClick(R.id.tv)
    public void onViewClicked() {
        Toast.makeText(getContext(), "Click", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected int getContentViewId() {
        return R.layout.fragment_blank;
    }
}
